RenderUtil

object RenderUtil

Render utils for DrawContext to provide functionality similar to 1.20.2+ sprite rendering

Author

fzzyhmstrs

Since

0.2.0

Functions

Link copied to clipboard
fun DrawContext.drawGuiTexture(id: Identifier, x: Int, y: Int, width: Int, height: Int)
fun DrawContext.drawGuiTexture(id: Identifier, x: Int, y: Int, width: Int, height: Int, color: Int)

Extension function to replicate drawGuiTexture from 1.20.2-1.21.1. Uses the RenderLayer.getGuiTextured method to fill in the function param